package com.dao;

import com.entity.system.AgentIncomeDetailNew;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface AgentIncomeDetailNewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgentIncomeDetailNew record);

    int insertSelective(AgentIncomeDetailNew record);

    AgentIncomeDetailNew selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AgentIncomeDetailNew record);

    int updateByPrimaryKey(AgentIncomeDetailNew record);

    List<AgentIncomeDetailNew> findByMap(Map<String,Object> map);

    BigDecimal findSumIncomeAmountByUserIdAndIncomeType(Map<String,Object> map);

    List<AgentIncomeDetailNew> findByIncomeUserId(Map<String,Object> map);

    List<AgentIncomeDetailNew> findAgentRank(Map<String,Object> map);
}